package cn.adelyn.base.rbac.constant;

import cn.adelyn.common.cache.constant.CacheNames;

/**
 * @author chengze
 * @date 2022/12/20
 * @desc 缓存名字
 */
public interface RbacCacheNames extends CacheNames {


    /**
     * 前缀
     */
    String RBAC_PREFIX = "adelyn_rbac" + CacheNames.UNION_KEY;

    /**
     * 所有权限列表缓存key
     */
    String PERMISSION = RBAC_PREFIX + "permission" + CacheNames.UNION_KEY;

    /**
     * 用户拥有的权限列表缓存key
     */
    String USER_PERMISSIONS = PERMISSION + "user_permissions";

    /**
     * uri对应的权限缓存key
     */
    String URI_PERMISSION = PERMISSION + "uri_permissions";

    /**
     * 菜单id key
     */
    String MENU_ID_LIST = RBAC_PREFIX + "menu:id_list";

}
